package com.ruoyi.biz.letter.service.impl;

import java.util.List;
        import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.biz.letter.mapper.BizLetterClaimMapper;
import com.ruoyi.biz.letter.domain.BizLetterClaim;
import com.ruoyi.biz.letter.service.IBizLetterClaimService;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

/**
 * 信访认领Service业务层处理
 *
 * @author Fei.Cong
 * @date 2024-07-22
 */
@Service
public class BizLetterClaimServiceImpl extends ServiceImpl<BizLetterClaimMapper, BizLetterClaim> implements IBizLetterClaimService {

    @Autowired
    private BizLetterClaimMapper bizLetterClaimMapper;

    /**
     * 分页查询信访认领
     *
     * @param page
     * @param bizLetterClaim 信访认领
     */
    @Override
    public IPage<BizLetterClaim> pageList(BizLetterClaim bizLetterClaim, IPage<BizLetterClaim> page) {
        return bizLetterClaimMapper.selectPageList(page, bizLetterClaim);
    }

    /**
     * 条件查询信访认领
     *
     * @param bizLetterClaim 信访认领
     * @return
     */
    @Override
    public List<BizLetterClaim> queryList(BizLetterClaim bizLetterClaim) {
        LambdaQueryWrapper<BizLetterClaim> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        return bizLetterClaimMapper.selectList(lambdaQueryWrapper);
    }

}
